// 关于 layout 组件相关配置的二级仓库
import { defineStore } from "pinia";

const useLayoutSettingStore = defineStore("LayoutSettingStore", {
  state: () => {
    return {
      fold: false, // 用于控制菜单是否折叠
      refresh: false, // 用于控制刷新效果
    };
  },
  actions: {
    toRefresh() {
      this.refresh = !this.refresh;
    }
  }
});

export default useLayoutSettingStore;
